package cn.yili12.business.entity;


import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 消息实体类
 */
@Entity
@Table(name = "chat_message")
@Data
public class MessageDb {
    @Id
    private Long id;
    @Column(name = "no", length = 64)
    private String no;
    @Column(name = "from_user", length = 100)
    private String fromUser;
    @Column(name = "to_user", length = 100)
    private String toUser;
    @Column(name = "send_time")
    private Date sendTime;
    @Column(name = "read_time")
    private Date readTime;
    @Column(name = "status")
    private Integer status;
    @Column(name = "data", columnDefinition = "TEXT")
    private String data;
}